package com.ouc.pampas;

import com.google.common.base.Strings;
import com.google.common.collect.Sets;
import java.io.Serializable;
import java.util.Set;

public class Render
  implements Serializable
{
  private static final long serialVersionUID = 2784212452907126587L;
  private String eeveeLayout;
  private Set<String> prefixs;
  
  public String toString()
  {
    return "Render(eeveeLayout=" + getEeveeLayout() + ", prefixs=" + getPrefixs() + ")";
  }
  
  public String getEeveeLayout()
  {
    return this.eeveeLayout;
  }
  
  public void setEeveeLayout(String eeveeLayout)
  {
    this.eeveeLayout = eeveeLayout;
  }
  
  public Set<String> getPrefixs()
  {
    return this.prefixs;
  }
  
  public void setPrefixs(Set<String> prefixs)
  {
    this.prefixs = prefixs;
  }
  
  public void merge(Render mergedRender)
  {
    if ((mergedRender.getPrefixs() != null) && (!mergedRender.getPrefixs().isEmpty()))
    {
      if (this.prefixs == null) {
        this.prefixs = Sets.newHashSet();
      }
      this.prefixs.addAll(mergedRender.getPrefixs());
    }
    if (!Strings.isNullOrEmpty(mergedRender.getEeveeLayout())) {
      this.eeveeLayout = mergedRender.getEeveeLayout();
    }
  }
}
